//
//  TTConstBounds.swift
//  TianTianBiTing
//
//  Created by Gox mac 2 on 2018/12/18.
//  Copyright © 2018 Gox_WallyDiao. All rights reserved.
//

import Foundation
import UIKit
import ObjectiveC

let SCREEN_WIDTH = UIScreen.main.bounds.size.width
let SCREEN_HEIGHT = UIScreen.main.bounds.size.height
let WELFAREBANNER_HEIGHT:CGFloat = 25.0

let SCREEN_WIDTH_CUT20 = (UIScreen.main.bounds.size.width - 20 - 40)

let OFFSET_BOTTOM = CGFloat(judgeDevice() == TTDevice.iPhoneXAndMax.rawValue ? 84.0 : 64.0)
let OFFSET_TOP = CGFloat(UIApplication.shared.statusBarFrame.size.height + 44.0)

enum TTDevice:String {
    case iPhoneXAndMax = "iPhoneXAndMax"
}

func judgeDevice() -> TTDevice.RawValue {
    switch SCREEN_HEIGHT {
    case 812.00:
        return TTDevice.iPhoneXAndMax.rawValue
    case 896.00:
        return TTDevice.iPhoneXAndMax.rawValue
    default:
        return ""
    }
}
